package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessReserveMapper;
import com.hckjsec.cloud.domain.AppletsBusinessReserve;
import com.hckjsec.cloud.service.IAppletsBusinessReserveService;

/**
 * 申办信息预约Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-03
 */
@Service
public class AppletsBusinessReserveServiceImpl implements IAppletsBusinessReserveService 
{
    @Autowired
    private AppletsBusinessReserveMapper appletsBusinessReserveMapper;

    /**
     * 查询申办信息预约
     * 
     * @param id 申办信息预约ID
     * @return 申办信息预约
     */
    @Override
    public AppletsBusinessReserve selectAppletsBusinessReserveById(Long id)
    {
        return appletsBusinessReserveMapper.selectAppletsBusinessReserveById(id);
    }

    /**
     * 查询申办信息预约列表
     * 
     * @param appletsBusinessReserve 申办信息预约
     * @return 申办信息预约
     */
    @Override
    public List<AppletsBusinessReserve> selectAppletsBusinessReserveList(AppletsBusinessReserve appletsBusinessReserve)
    {
        return appletsBusinessReserveMapper.selectAppletsBusinessReserveList(appletsBusinessReserve);
    }

    /**
     * 新增申办信息预约
     * 
     * @param appletsBusinessReserve 申办信息预约
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessReserve(AppletsBusinessReserve appletsBusinessReserve)
    {
        return appletsBusinessReserveMapper.insertAppletsBusinessReserve(appletsBusinessReserve);
    }

    /**
     * 修改申办信息预约
     * 
     * @param appletsBusinessReserve 申办信息预约
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessReserve(AppletsBusinessReserve appletsBusinessReserve)
    {
        return appletsBusinessReserveMapper.updateAppletsBusinessReserve(appletsBusinessReserve);
    }

    /**
     * 批量删除申办信息预约
     * 
     * @param ids 需要删除的申办信息预约ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessReserveByIds(Long[] ids)
    {
        return appletsBusinessReserveMapper.deleteAppletsBusinessReserveByIds(ids);
    }

    /**
     * 删除申办信息预约信息
     * 
     * @param id 申办信息预约ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessReserveById(Long id)
    {
        return appletsBusinessReserveMapper.deleteAppletsBusinessReserveById(id);
    }
}
